<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>DataSet</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1">DataSet</p>
<hr class="separator">
<div class="content">
The DataSet class represents data sets. DataSet objects are created by using <a href="Layer.addDataSet.htm">Layer.addDataSet</a>. Existing DataSet objects can be retrieved using <a href="Layer.getDataSet.htm">Layer.getDataSet</a>.
<br><br>
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Method</th><th width="19%">Inherited</th><th>Description</th>
</tr>
<tr>
<td><a href="DataSet.setDataName.htm">setDataName</a></td><td>(Self)</td><td>Sets the name of the data set.</td></tr><tr><td><a href="DataSet.getDataName.htm">getDataName</a></td><td>(Self)</td><td>Gets the name of the data set.</td></tr><tr><td><a href="DataSet.setDataColor.htm">setDataColor</a></td><td>(Self)</td><td>Sets the colors used to draw the data set.</td></tr><tr><td><a href="DataSet.getDataColor.htm">getDataColor</a></td><td>(Self)</td><td>Gets the main color used to draw the data set.</td></tr><tr><td><a href="DataSet.setDataSymbol.htm">setDataSymbol</a></td><td>(Self)</td><td>Uses one of the built-in symbols as the graphics symbol to plot the data points.</td></tr><tr><td><a href="DataSet.setDataSymbol2.htm">setDataSymbol2</a></td><td>(Self)</td><td>Uses the image from the specified file or resource as the graphics symbol to plot the data points.</td></tr><tr><td><a href="DataSet.setDataSymbol3.htm">setDataSymbol3</a></td><td>(Self)</td><td>Uses a <a href="DrawArea.htm">DrawArea</a> object as the graphics symbol to plot the data points.</td></tr><tr><td><a href="DataSet.setDataSymbol4.htm">setDataSymbol4</a></td><td>(Self)</td><td>Uses a custom shape as the graphics symbol to plot the data points.</td></tr><tr><td><a href="DataSet.setSymbolOffset.htm">setSymbolOffset</a></td><td>(Self)</td><td>Offset the symbols in the x and y directions in pixel unit.</td></tr><tr><td><a href="DataSet.getLegendIcon.htm">getLegendIcon</a></td><td>(Self)</td><td>Gets the CDML representation of the legend icon for the data set.</td></tr><tr><td><a href="DataSet.setLineWidth.htm">setLineWidth</a></td><td>(Self)</td><td>Sets the line width of lines when drawing the data set.</td></tr><tr><td><a href="DataSet.setDataLabelStyle.htm">setDataLabelStyle</a></td><td>(Self)</td><td>Enables data labels and sets their styles.</td></tr><tr><td><a href="DataSet.setDataLabelFormat.htm">setDataLabelFormat</a></td><td>(Self)</td><td>Sets the data label format for the data set.</td></tr><tr><td><a href="DataSet.setUseYAxis.htm">setUseYAxis</a></td><td>(Self)</td><td>Determine the y-axis to use when drawing the data set.</td></tr><tr><td><a href="DataSet.setUseYAxis2.htm">setUseYAxis2</a></td><td>(Self)</td><td>Determine if the primary or secondary y-axis should be used when drawing the data set.</td></tr><tr><td><a href="DataSet.getUseYAxis.htm">getUseYAxis</a></td><td>(Self)</td><td>Gets the y-axis to use when drawing the data set.</td></tr><tr><td><a href="DataSet.getValue.htm">getValue</a></td><td>(Self)</td><td>Gets the value of a data point.</td></tr><tr><td><a href="DataSet.getPosition.htm">getPosition</a></td><td>(Self)</td><td>Gets the positional value of a data point.</td>
</tr>
</table>
</div>

</div>
<hr class="separator"><div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
